import http from '../utils/http'

export const activityGet = ()=>{ //加载活动列表
  return http.get('/activity')
}

export const activityDel = (_id)=>{ //删除活动
  return http.delete('/activity?_id='+_id)
}

export const activityAdd = (obj)=>{ //新增活动
  return http.post('/activity',obj)
}

export const jobAdd = (arr)=>{ //批量转存岗位
  return http.post('/job',{
    data:arr
  })
}

export const joinGet = ()=>{ //加载报名列表
  return http.get('/join/list')
}

export const joinUpdate = (_id,obj)=>{ //报名审核
  return http.put(`/join/list?_id=${_id}`,obj)
}